class payments{
    constructor(){
        //获取用户地址
        let useaddress=localStorage.getItem('useaddress');
        //获取实付金额
        let money=location.search.split('?').pop();
        // console.log(money);
        //获取插入位置
        let useaddressObj=document.querySelector('.useaddress');
        useaddressObj.innerHTML='收货地址：'+useaddress;
        let payedInfoPriceObj=document.querySelector('.payedInfoPrice');
        payedInfoPriceObj.innerHTML='￥'+money;
    }
};
new payments;